/**
 * Created by Qingger Corp.
 * User: Administrator
 * Date: 2019-05-29
 * Time: 15:03
 */
import request from '@/utils/request'

//D9. 发票订单列表
export function getInvoicelist(params) {
  return request({
    url:'/shop/order/invoiceList',
    method:'get',
    params:params
  })
}

//D10. 订单开票详情
export function getInvoiceInfo(orderId) {
  return request({
    url:'/shop/order/invoiceDetail',
    method:'get',
    params:{orderId:orderId}
  })
}

//D11.订单开票提交
export function postInvoicestata(orderId) {
  return request({
    url:'/shop/order/invoice',
    method:'post',
    data:{orderId:orderId}
  })
}

//订单统计分析
export function getorderAnalysis(params) {
  return request({
    url:'/shop/financeReport/order',
    method:'get',
    params
  })
}

//订单统计分析导出
export function exportorderAnalysis(params) {
  return request({
    url:'/shop/financeReport/orderExcel',
    method:'get',
    params
  })
}
//商品统计分析
export function getGoodsAnalysis(params) {
  return request({
    url:'/shop/financeReport/orderGoods',
    method:'get',
    params
  })
}

//商品统计分析导出
export function exportGoodsAnalysis(params) {
  return request({
    url:'/shop//financeReport/orderGoodsExcel',
    method:'get',
    params
  })
}


//店主加盟费
export function getJoinAnalysis(params) {
  return request({
    url:'/shop/financeReport/join',
    method:'get',
    params
  })
}

//店主加盟费导出
export function exportJoinAnalysis(params) {
  return request({
    url:'/shop/financeReport/joinExcel',
    method:'get',
    params
  })
}
